import Vue from 'vue';
import Router from 'vue-router';
// import Index from '../views/index';
import Login from '../views/login';
import Navigation from '../views/navigation';
import Process from '../views/process';
import Result from '../views/result';

Vue.use(Router);
export default new Router({
  routes: [
    {
      path: '/',
      redirect: '/nav'
    },
    {
      path: '/login',
      name: 'Login',
      component: Login
    },
    {
      path: '/nav',
      name: 'Navigation',
      component: Navigation,
      children: [{
        path: '/nav/introduce',
        name: 'Introuduce',
        component: resolve => require(['../views/introduce'], resolve)
      }]
    },
    {
      path: '/process',
      name: 'Process',
      component: Process
    },
    {
      path: '/result',
      name: 'Result',
      component: Result
    }
  ]
});
